<script>
$(document).ready(function(){

	$("#listResult  tbody tr:even").addClass('even');
    $("#listResult  tbody tr:odd").addClass('odd');
    $("#listResult tbody tr").mouseover(function() {
        $(this).addClass("trover");}).mouseout(function() {
            $(this).removeClass("trover");});
});
</script>
<style>
.odd {background:#eef ; text-align:center }
.even {background:#ffe ; text-align:center}
.trover{background-color: #eeff88;}
.trclick{background-color: #ffaa00;}
.listTable span { margin: 5px;}
.title {border:#05a solid 1px; padding:3px}
</style>

<?php foreach ($this->data as $classSn=> $rows):?>
<table  class="listTable">
<tr>
<td>
<span class="title"><?php echo $this->translate('class order')?></span> : <span><?php echo  $classSn?></span>
<span class="title"><?php echo  $this->translate('boy')?></span> : <span><?php echo  $this->total['sex'][$classSn]['M']?> </span>
<span class="title"><?php echo  $this->translate('girl')?></span> : <span><?php echo  $this->total['sex'][$classSn]['F']?></span>
</td>
<td>
<span class="title" ><?php echo $this->translate('group')?> </span>
<?php foreach($this->total['type'][$classSn] as $type=>$num): ?>
<span> <?php echo  ($type==0)? $this->translate('normal student'):$this->groupName[$type]?> : <?php echo  $num?></span>
<?php endforeach?>

</td>
</tr>
</table>
<table id="listResult" class="listTable">
<thead>

<tr>
<th>NO</th>
<th><?php echo  $this->translate('student id')?></th>
<th><?php echo  $this->translate('class order')?></th>
<th><?php echo  $this->translate('student number')?></th>
<th><?php echo  $this->translate('student name')?></th>
<th><?php echo  $this->translate('group_name')?></th>
</tr>
</thead>
<tbody>
<?php $i= 0;?>
<?php foreach($rows as $val):?>
<tr>
<td><?php echo  ++$i?></td>
<td><?php echo  $val['student_id']?></td>
<td><?php echo  $val['new_class']?></td>
<td><?php echo  $val['new_number']?></td>
<td><?php echo  $val['student_name']?></td>
<td><?php if (isset($this->groupName[$val['student_type']])) echo  $this->groupName[$val['student_type']]?></td>
</tr>
<?php endforeach?>
</tbody>
</table>
<hr />
<?php endforeach;?>